<div id="maincontent">

<%= render :partial => "shared_common_files/data_area_help_bar" %>

<h2>Permission > Edit</h2>

					<!-- h5>Edit Permission</h5 -->
					<!-- OpenApp Built New Panel starts -->


<%= start_form_tag ({:action => 'edit'},{:class => 'appform'}) %>

	<div class="req"><b>*</b>Required Information </div>

	<fieldset>

			<%=error_messages_for("permission")%>

			<h3>Edit Permission</h3>
      			
			<label for="name"><b><span class="req">*</span>Controller</b>
				<input class="f-name" name="permission[controller]" value="<%= @permission.controller %>"  size="30" /><br />
			</label>
			
			<label for="name"><b><span class="req">*</span>Action</b>
				<input class="f-name" name="permission[action]" value="<%= @permission.action %>" size="30" /><br />
			</label>

			<label for="name"><b>Description</b>
				<textarea class="f-comments" rows="10" cols="25" name="permission[description]" ><%= @permission.description %></textarea><br />
			</label>
			
			<div class="f-submit-wrap">
            	<!-- input type="submit" name="savebutton" value="Save" / -->
            	<!-- input type="button" value="Cancel" onclick="javascript:history.go(-1);"/ -->
            		  	<%= image_submit_tag "/themes/odotclassic/images/btn_save.png", :alt => 'Save', :border => 0 %>
            		  	<%= link_if_authorized image_tag('/themes/odotclassic/images/btn_cancel.gif', :alt =>'Cancel'), {:action => 'show', :id => @permission}  %>
            </div>
            
            
 					<!-- %=renderEditPanel({"controller"=>"permission", "action"=>"edit/#{@permission.id}"}, [{"label"=>"Controller", "name"=>"permission[controller]", "value"=>"#{@permission.controller}", "required"=>"true"},
                                                                    {"label"=>"Action", "name"=>"permission[action]", "value"=>"#{@permission.action}", "required"=>"true"},
                                                                    {"label"=>"Description", "name"=>"permission[description]", "value"=>"#{@permission.description}", "size"=>"55"}],
         
                                                                  "Edit Permission", "permission", @permission ,nil, nil)% -->
					<!-- OpenApp Built New Panel ends-->

	</fieldset>
	
<%= end_form_tag %>

</div>
